package com.xxxx.manager.service.impl;

import com.xxxx.common.result.BaseResult;
import com.xxxx.manager.mapper.GoodsImagesMapper;
import com.xxxx.manager.pojo.GoodsImages;
import com.xxxx.manager.service.GoodsImagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author Str
 * @Date 2021/10/6 14:21
 * @Description :商品相册服务实现类
 */
@Service
public class GoodsImagesServiceImpl implements GoodsImagesService {
    @Autowired
    private GoodsImagesMapper goodsImagesMapper;

    /**
     * 商品-新增-相册保存
     *
     * @return
     */
    @Override
    public BaseResult saveGoodsImages(GoodsImages goodsImages) {
        int result = goodsImagesMapper.insertSelective(goodsImages);
        return result > 0 ? BaseResult.success() : BaseResult.error();
    }
}